package Day5Zuoye;

public class Teacher {
    private String name;
    private int age;
    private int teachyear;
    private String sex;

    public void selfIntroduce(){
        System.out.println("大家好,我的名字是:"+name+"\t年龄:"+age+"\t教龄:"+teachyear+"\t性别:"+sex);
    }

    public void giveLession(){
        System.out.println("上课了!!!");
    }

    public Teacher(String name, int age, int teachyear, String sex) {
        this.name = name;
        this.age = age;
        this.teachyear = teachyear;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeachyear() {
        return teachyear;
    }

    public void setTeachyear(int teachyear) {
        this.teachyear = teachyear;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
